import api from '../utils/api';

export async function queryList(param) {
  return api.post('/scrap/queryList', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/scrap/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/scrap/remove', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  return api.post('/scrap/edit', {
    data: JSON.stringify(param),
  });
}

export async function doScrap(param) {
  return api.post('/scrap/doScrap', {
    data: JSON.stringify(param),
  });
}

export async function qryById(param) {
  return api.post('/scrap/qryById', {
    data: JSON.stringify(param),
  });
}

export async function getJoberNum() {
  return api.post('/pulloff/getJoberNum');
}

export async function qryAssetById(param) {
  return api.post('/asset/qryAssetById', {
    data: JSON.stringify(param),
  });
}

export async function querAssetListByParam(param) {
  return api.post('/scrap/querAssetListByParam', {
    data: JSON.stringify(param),
  });
}



